<script setup lang="ts">
const props = defineProps({
  icon: {
    type: String,
  },
  text: {
    type: String,
  },
});
</script>
<template>
  <div class="titleBar">
    <i :class="`iconfont ${icon}`" v-if="icon"></i>
    <span>{{ text }}</span>
  </div>
</template>
<style scoped lang="scss">
.titleBar {
  font-size: 14px;
  background: #fff;
  display: flex;
  align-items: center;
  i {
    margin-right: 5px;
    font-size: 16px;
  }
}
</style>
